<?php
use yii\helpers\Html;
$this->title = '管理后台';

?>

<!--[if lt IE 9]>
<script src="/assets/libs/html5shiv.js?6.6.2"></script>
<script src="/assets/libs/respond.min.js?6.6.2"></script>
<![endif]-->
<div class="container">
    <div class="row">
      
<div class="page-header">
  <h1>管理中心  </h1>
</div>

  
  <div class="row">
    <div class="col-md-12">
      <div id="app-upgrade-alert" class="alert alert-info alert-dismissable hide" data-url="/admin/app/upgrades_count" data-upgrade-url="/admin/app/upgrades">
        <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
      </div>
    </div>

 <div class="col-md-6">
  <div class="panel panel-default">
  
    <div class="panel-heading clearfix">
     <span class="pull-right" style="display:block">
         <span id="onlineNum" data-url="/admin/online/count">当前在线：1人</span>（<span id="loginNum" data-url="/admin/login/count">登录人数：1人</span>）
     </span>
     <h3 class="panel-title pull-left" id="operation-analysis-title" data-url="/admin/operation/analysis"> 数据统计

     </h3>
    </div>
    <div id="operation-analysis-table">
<table class="table table-condensed table-bordered table-striped table-hover">
        <thead>
          <tr>
            <th width="35%"></th>
            <th width="20%">今日</th>
            <th width="20%">昨日</th>
		            <th width="40%">历史</th>
		          </tr>
        </thead>
        <tbody>
			<tr>
				<td>新注册用户数</td>
				<td><span class="pull-right"><?= Html::encode($today_user);?></span></td>
				<td><span class="pull-right"><?= Html::encode($yesterday_user);?></span></td>
							<td><a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/register/trend?analysisDateType=register">趋势</a> <span class="text-muted">|</span> <a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/register/detail?analysisDateType=register">详情</a></td>
							</tr>

			<tr>
				<td>用户登录数<small>（不含重复登录）</small></td>
				<td><span class="pull-right"><?= Html::encode($today_login);?></span></td>
				<td><span class="pull-right"><?= Html::encode($yesterday_login);?></span></td>
							<td><a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/login/trend?analysisDateType=login">趋势</a> <span class="text-muted">|</span> <a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/login/detail?analysisDateType=login">详情</a></td>
				
			</tr>

			<tr>
				<td>新增课程数</td>
				<td><span class="pull-right"><?= Html::encode($today_course);?></span></td>
				<td><span class="pull-right"><?= Html::encode($yesterday_course);?></span></td>
							<td><a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/course/trend?analysisDateType=course">趋势</a> <span class="text-muted">|</span> <a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/course/detail?analysisDateType=course">详情</a></td>
				
			</tr>

			<tr>
				<td>新增课时数</td>
				<td><span class="pull-right"><?= Html::encode($today_section);?></span></td>
				<td><span class="pull-right"><?= Html::encode($yesterday_section);?></span></td>
							<td><a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/lesson/trend?analysisDateType=lesson">趋势</a> <span class="text-muted">|</span> <a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/lesson/detail?analysisDateType=lesson">详情</a></td>
				
			</tr>

			<tr>
				<td>加入学习数</td>
				<td><span class="pull-right"><?= Html::encode($today_study_num);?></span></td>
				<td><span class="pull-right"><?= Html::encode($yesterday_study_num);?></span></td>
							<td><a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/lesson/join/trend?analysisDateType=joinLesson">趋势</a> <span class="text-muted">|</span> <a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/lesson/join/detail?analysisDateType=joinLesson">详情</a></td>
				
			</tr>

			<tr>
				<td>购买课程数</td>
				<td><span class="pull-right"><?= Html::encode($today_buycourser);?></span></td>
				<td><span class="pull-right"><?= Html::encode($yesterday_buycourser);?></span></td>
							<td><a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/lesson/paid/trend?analysisDateType=paidLesson">趋势</a> <span class="text-muted">|</span> <a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/lesson/paid/detail?analysisDateType=paidLesson">详情</a></td>
				
			</tr>

			<tr>
				<td>完成课时学习数</td>
				<td><span class="pull-right"><?= Html::encode($today_coursecomplete);?></span></td>
				<td><span class="pull-right"><?= Html::encode($yesterday_coursecomplete);?></span></td>
							<td><a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/lesson/finished/trend?analysisDateType=finishedLesson">趋势</a> <span class="text-muted">|</span> <a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/lesson/finished/detail?analysisDateType=finishedLesson">详情</a></td>
			
			</tr>

			<tr>
				<td>视频观看数<small>（含重复打开）</small></td>
				<td><span class="pull-right"><?= Html::encode($today_seevideo);?></span></td>
				<td><span class="pull-right"><?= Html::encode($yesterday_seevideo);?></span></td>
						<td><a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/video/viewed/trend?analysisDateType=videoViewed">趋势</a> <span class="text-muted">|</span> <a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/video/viewed/detail?analysisDateType=videoViewed">详情</a></td>
			
			</tr>
						<tr>
				<td>营收额</td>
				<td><span class="pull-right"><?= Html::encode($today_revenue);?></span></td>
				<td><span class="pull-right"><?= Html::encode($yesterday_revenue);?></span></td>
				<td><a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/income/trend?analysisDateType=income">趋势</a> <span class="text-muted">|</span> <a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/income/detail?analysisDateType=income">详情</a></td>
			</tr>
						<tr>
				<td>课程总数</td>
				<td><span class="pull-right"><?= Html::encode($today_allcourse);?></span></td>
				<td><span class="pull-right"><?= Html::encode($yesterday_allcourse);?></span></td>
							<td><a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/course/sum/trend?analysisDateType=courseSum">趋势</a> <span class="text-muted">|</span> <a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/course/sum/detail?analysisDateType=courseSum">详情</a></td>
							</tr>

			<tr>
				<td>用户总数</td>
				<td><span class="pull-right"><?= Html::encode($today_alluser);?></span></td>
				<td><span class="pull-right"><?= Html::encode($yesterday_alluser);?></span></td>
							<td><a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/user/sum/trend?analysisDateType=userSum">趋势</a> <span class="text-muted">|</span> <a href="http://dcoffee.edusoho.com.cn/admin/operation/analysis/user/sum/detail?analysisDateType=userSum">详情</a></td>
							</tr>


        </tbody>
</table>
</div>
  </div>
</div>
    <div class="col-md-6">
       <div class="panel panel-default">
        <div class="panel-heading">
          <h3 class="panel-title" id="system-status-title" data-url="/admin/system/status">系统状态</h3>
        </div>
        <div id="system-status"><table class="table table-condensed table-bordered table-striped table-hover">
              <tbody><tr>
        <td>主系统</td>
        <td>
          <span class="glyphicon glyphicon-ok-sign text-success"></span>
          已是最新版本 6.6.2
        </td>
      </tr>
    
  
              <tr><td>应用更新</td><td>          <span class="glyphicon glyphicon-info-sign text-info"></span> 还有 <span class="badge" style="background-color:#cc0000;">
                    6
          </span> 个应用没有更新 <a class="btn btn-xs btn-info pull-right" href="http://dcoffee.edusoho.com.cn/admin/app/upgrades">立即更新</a>
                    </td></tr>

        <tr><td>新应用</td><td><span class="glyphicon glyphicon-info-sign text-info"></span> 还有 <span class="badge">8</span> 个应用没有安装<a class="pull-right" href="http://dcoffee.edusoho.com.cn/admin/app/center">查看</a></td></tr>

        <tr><td>云视频</td><td><span class="glyphicon glyphicon-ok-sign text-success"></span> 已开通</td></tr>
              <tr>
          <td>直播</td>
          <td>
                          <span class="glyphicon glyphicon-info-sign text-info"></span> 
              还未开通
              <a class="pull-right" href="http://dcoffee.edusoho.com.cn/admin/setting/course-setting#live-course-set">查看</a>
                      </td>
        </tr>

        <tr><td>移动客户端</td><td><span class="glyphicon glyphicon-ok-sign text-success"></span> 已启用</td></tr>

</tbody></table></div>
      </div>
    </div>
    <div id="popular-courses-panel" class="col-md-6">
       <div class="panel panel-default">
        <div class="panel-heading">
          <select id="popular-courses-type" class="pull-right" data-url="/admin/popular_courses">
              <option selected="selected" value="today">今日</option><option value="yesterday">昨日</option><option value="this_week">本周</option><option value="last_week">上周</option><option value="this_month">本月</option><option value="last_month">上月</option>
          </select>
          <h3 class="panel-title">受欢迎课程</h3>
        </div>
        <div id="popular-courses-table">  <div class="empty">暂无受欢迎课程</div>
</div>
      </div>
    </div>
  </div>

  <div class="row">
    <div class="col-md-12">
    <div class="panel panel-default">
        <div class="panel-heading">

            <a class="pull-right" href="http://dcoffee.edusoho.com.cn/admin/coin/records/user">更多</a>
            <h3 class="panel-title">用户虚拟币记录</h3>
             
        </div>

            <div class="empty">暂无用户虚拟币记录</div>
          </div>
</div>
  </div>

  <div class="row">
    <div class="col-md-12">
	<div class="panel panel-default">
		<div class="panel-heading">

           	<a class="pull-right" href="http://dcoffee.edusoho.com.cn/admin/question/unPosted">更多</a>
			<h3 class="panel-title">最新未回复问答</h3>
			 
		</div>

		    <table class="table table-condensed table-bordered table-striped table-hover">
	      <thead>
	        <tr>
	          <th width="40%">问答标题</th>
	          <th width="35%">所属课程</th>
	          <th width="10%">提问人</th>
	          <th width="15%">操作</th>
	        </tr>
	      </thead>
	      <tbody class="tbody">
	        	          		        <tr>
		          <td>
	              <a href="http://dcoffee.edusoho.com.cn/course/1/thread/6" target="_blank">
	                创建的课程不可以删除吗？
	              </a>
	              <br>
	              <span class="text-muted text-sm">0次查看</span>
	              <span class="text-muted text-sm">•</span>
	              <span class="text-muted text-sm">发表于2015-6-11 16:02</span>
		          </td>
		          <td>
		          			              <a href="http://dcoffee.edusoho.com.cn/course/1" target="_blank">课程发布指南</a>
		              <br>
		              <span class="text-muted text-sm">老师：
				            				                		<a class="text-muted text-sm" href="javascript:;" role="show-user" data-toggle="modal" data-target="#modal" data-url="http://dcoffee.edusoho.com.cn/admin/user/1">admin</a>
	
				            				          </span>
			          		          </td>
		          <td>
		              		<a href="javascript:;" role="show-user" data-toggle="modal" data-target="#modal" data-url="http://dcoffee.edusoho.com.cn/admin/user/1">admin</a>
	
		          </td>
		          <td>
		          					          <button class="btn btn-default btn-sm remind-teachers" data-url="/admin/course/1/question/6/remindTeachers">提醒教师</button>
			          			        </td>
		        </tr>
	        	          		        <tr>
		          <td>
	              <a href="http://dcoffee.edusoho.com.cn/course/6/thread/4" target="_blank">
	                为什么看视频会卡？
	              </a>
	              <br>
	              <span class="text-muted text-sm">5次查看</span>
	              <span class="text-muted text-sm">•</span>
	              <span class="text-muted text-sm">发表于2015-6-02 15:19</span>
		          </td>
		          <td>
		          			              <a href="http://dcoffee.edusoho.com.cn/course/6" target="_blank">EduSoho产品特色</a>
		              <br>
		              <span class="text-muted text-sm">老师：
				            				                		<a class="text-muted text-sm" href="javascript:;" role="show-user" data-toggle="modal" data-target="#modal" data-url="http://dcoffee.edusoho.com.cn/admin/user/1">admin</a>
	
				            				          </span>
			          		          </td>
		          <td>
		              		<a href="javascript:;" role="show-user" data-toggle="modal" data-target="#modal" data-url="http://dcoffee.edusoho.com.cn/admin/user/9">Canuo</a>
	
		          </td>
		          <td>
		          					          <button class="btn btn-default btn-sm remind-teachers" data-url="/admin/course/6/question/4/remindTeachers">提醒教师</button>
			          			        </td>
		        </tr>
	        	          		        <tr>
		          <td>
	              <a href="http://dcoffee.edusoho.com.cn/course/4/thread/3" target="_blank">
	                我可以给网校添加用户吗？
	              </a>
	              <br>
	              <span class="text-muted text-sm">0次查看</span>
	              <span class="text-muted text-sm">•</span>
	              <span class="text-muted text-sm">发表于2015-5-29 17:02</span>
		          </td>
		          <td>
		          			              <a href="http://dcoffee.edusoho.com.cn/course/4" target="_blank">网校基本设置</a>
		              <br>
		              <span class="text-muted text-sm">老师：
				            				                		<a class="text-muted text-sm" href="javascript:;" role="show-user" data-toggle="modal" data-target="#modal" data-url="http://dcoffee.edusoho.com.cn/admin/user/1">admin</a>
	
				            				          </span>
			          		          </td>
		          <td>
		              		<a href="javascript:;" role="show-user" data-toggle="modal" data-target="#modal" data-url="http://dcoffee.edusoho.com.cn/admin/user/1">admin</a>
	
		          </td>
		          <td>
		          					          <button class="btn btn-default btn-sm remind-teachers" data-url="/admin/course/4/question/3/remindTeachers">提醒教师</button>
			          			        </td>
		        </tr>
	        	          		        <tr>
		          <td>
	              <a href="http://dcoffee.edusoho.com.cn/course/2/thread/2" target="_blank">
	                学员可以在网校做哪些操作呢？
	              </a>
	              <br>
	              <span class="text-muted text-sm">1次查看</span>
	              <span class="text-muted text-sm">•</span>
	              <span class="text-muted text-sm">发表于2015-5-28 17:06</span>
		          </td>
		          <td>
		          			              <a href="http://dcoffee.edusoho.com.cn/course/2" target="_blank">学员在网校</a>
		              <br>
		              <span class="text-muted text-sm">老师：
				            				                		<a class="text-muted text-sm" href="javascript:;" role="show-user" data-toggle="modal" data-target="#modal" data-url="http://dcoffee.edusoho.com.cn/admin/user/1">admin</a>
	
				            				          </span>
			          		          </td>
		          <td>
		              		<a href="javascript:;" role="show-user" data-toggle="modal" data-target="#modal" data-url="http://dcoffee.edusoho.com.cn/admin/user/1">admin</a>
	
		          </td>
		          <td>
		          					          <button class="btn btn-default btn-sm remind-teachers" data-url="/admin/course/2/question/2/remindTeachers">提醒教师</button>
			          			        </td>
		        </tr>
	        	      </tbody>
        </table>
    	</div>
</div>
  </div>

  <div class="row">
    <div class="col-md-12">
	<div class="panel panel-default">
		<div class="panel-heading">
			 <h3 class="panel-title">最新购买记录</h3>
		</div>
          <table class="table table-condensed table-bordered table-striped table-hover">
  	    <thead>
  	      <tr>
  	        <th width="50%">订单名称</th>
  	        <th width="10%">金额</th>
  	        <th width="10%">购买人</th>
  	        <th width="20%">支付方式</th>
  	      </tr>
  	    </thead>
        <tbody>
                      <tr>
            	<td>
  		            	            	购买班级《EduSoho产品介绍》(管理员添加)
              	            	</td>
              <td class="money-text">0.00 元</td>
              <td>
              	  		<a href="javascript:;" role="show-user" data-toggle="modal" data-target="#modal" data-url="http://dcoffee.edusoho.com.cn/admin/user/12">River</a>
	
              </td>
              <td>
              	<span class="text-sm">--  / 2015-6-30 16:59</span>
              </td>
            </tr>
                      <tr>
            	<td>
  		            	            	购买班级《EduSoho产品介绍》(管理员添加)
              	            	</td>
              <td class="money-text">0.00 元</td>
              <td>
              	  		<a href="javascript:;" role="show-user" data-toggle="modal" data-target="#modal" data-url="http://dcoffee.edusoho.com.cn/admin/user/7">Cloudy</a>
	
              </td>
              <td>
              	<span class="text-sm">--  / 2015-6-30 16:59</span>
              </td>
            </tr>
                      <tr>
            	<td>
  		            	            	购买班级《EduSoho产品介绍》(管理员添加)
              	            	</td>
              <td class="money-text">0.00 元</td>
              <td>
              	  		<a href="javascript:;" role="show-user" data-toggle="modal" data-target="#modal" data-url="http://dcoffee.edusoho.com.cn/admin/user/11">Jana</a>
	
              </td>
              <td>
              	<span class="text-sm">--  / 2015-6-30 16:58</span>
              </td>
            </tr>
                      <tr>
            	<td>
  		            	            	购买班级《EduSoho产品介绍》(管理员添加)
              	            	</td>
              <td class="money-text">0.00 元</td>
              <td>
              	  		<a href="javascript:;" role="show-user" data-toggle="modal" data-target="#modal" data-url="http://dcoffee.edusoho.com.cn/admin/user/10">Jimmy</a>
	
              </td>
              <td>
              	<span class="text-sm">--  / 2015-6-30 16:58</span>
              </td>
            </tr>
                      <tr>
            	<td>
  		                            <a href="http://dcoffee.edusoho.com.cn/course/6" target="_blank">购买课程《EduSoho产品特色》</a>
                            	</td>
              <td class="money-text">0.00 元</td>
              <td>
              	  		<a href="javascript:;" role="show-user" data-toggle="modal" data-target="#modal" data-url="http://dcoffee.edusoho.com.cn/admin/user/5">Jason</a>
	
              </td>
              <td>
              	<span class="text-sm">--  / 2015-6-30 14:57</span>
              </td>
            </tr>
                  </tbody>
      </table>
      </div>
</div>
  </div>


    </div>
  </div>